package com.egao.common.module.company.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lym
 * @date 2024/1/2 11:39
 */
@ApiModel(description = "双选会邀请函")
@Data
@TableName("mutual_invitation")
public class MutualInvitation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("举办场地")
    private String fieldName;

    @ApiModelProperty("举办日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;

    @ApiModelProperty("截止报名日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endTime;

    @ApiModelProperty("举办时间段")
    private String timeType;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("主办方")
    private String companyName;

    @ApiModelProperty("双选会说明")
    private String content;

    @ApiModelProperty("点击量")
    private Integer hits;

    @ApiModelProperty("发布人")
    private Integer createBy;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("附件集合")
    @TableField(exist = false)
    private List<Attachment> attachments;

    @ApiModelProperty("时间是否已过，0否，1是")
    @TableField(exist = false)
    private Integer timeState;

}
